// false.writeFlie(path.join(__dirname,''),'112233',(error)=>{
//     if(error){console.log(error)}
//     else{
//         console.log('succsee');
//     }
// })

let path = require('path');
let fs = require('fs');

let content = '';
fs.readFile(path.join(__dirname,'cut.txt'),'utf-8',(err,date)=>{
    if(err){ console.log(err);}
    else{
        content += date;
        fs.readFile(path.join(__dirname,'text.txt'),'utf-8',(err,date)=>{
            if(err){ console.log(err);}
            else{
                content += date;
                fs.writeFile(path.join(__dirname,'next.txt'),'utf-8',(err)=>{
                    if(err){ console.log(err);}
                    else{
                        console.log('success');
                    }
                });
            }
        });
    }
})

let array = [2,3,2,8,4,3,2];
let set = new Set();
array.forEach((item)=>{
    set.add(item);
})
console.log(item);